<%@ page import="com.xinjie.www.service.user.UserServiceImpl" %>
<%@ page import="com.xinjie.www.po.User" %>
<%@ page import="java.util.List" %>
<%@ page import="com.xinjie.www.util.Constants" %>
<%@ page import="com.xinjie.www.po.Manager" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>查看封禁用户</title>
    <style type="text/css">
        table {
            width: 100%;
            border: 1px solid red;
            border-collapse: collapse;
        }

        th, td {
            border: 1px solid red;
        }
    </style>
</head>
<body>
<%
    Object o = request.getSession().getAttribute(Constants.MANAGER_SESSION);
    Manager manager = (Manager) o;
    int id = Integer.parseInt(request.getParameter("id"));
    System.out.println(id);
    UserServiceImpl userService = new UserServiceImpl();
    List<User> banUser = userService.getBanUser(id);
%>
<div align="center">
    <h4>被封禁的用户</h4>
    <table>
        <tr>
            <th>用户id</th>
            <th>用户名</th>
            <th>用户性别</th>
            <th>用户个性签名</th>
        </tr>
        <%
            for (User user : banUser) {
        %>
        <tr>
            <%= "<td>" + user.getUserId() + "</td>"%>
            <%="<td>" + user.getUserName() + "</td>"%>
            <%="<td>" + user.getSex()+ "</td>"%>
            <%="<td>" + user.getSign() + "</td>"%>
        </tr>
        <%}%>
    </table>
    <a href="LookOwnTieba.jsp">返回</a>
</div>
</body>
</html>
